import request from '@/utils/request'

// 查询小程序二维码列表
export function listQrcode(query) {
  return request({
    url: '/tongban/qrcode/list',
    method: 'get',
    params: query
  })
}

// 查询小程序二维码列表
export function institutinonQrcode(id) {
  let query={institutionId:id}
  return request({
    url: '/tongban/qrcode/institutinonQrcode',
    method: 'get',
    params: query
  })
}

// 查询小程序二维码详细
export function getQrcode(appletsQrcodeId) {
  return request({
    url: '/tongban/qrcode/' + appletsQrcodeId,
    method: 'get'
  })
}

// 新增小程序二维码
export function addQrcode(data) {
  return request({
    url: '/tongban/qrcode',
    method: 'post',
    data: data
  })
}

// 修改小程序二维码
export function updateQrcode(data) {
  return request({
    url: '/tongban/qrcode',
    method: 'put',
    data: data
  })
}

// 删除小程序二维码
export function delQrcode(appletsQrcodeId) {
  return request({
    url: '/tongban/qrcode/' + appletsQrcodeId,
    method: 'delete'
  })
}

// 导出小程序二维码
export function exportQrcode(query) {
  return request({
    url: '/tongban/qrcode/export',
    method: 'get',
    params: query
  })
}
